package com.ruohi.gift.order;

/**
 * 显示前台订单操作
 * @author Administrator
 *
 */
public class ShowFrontOrderOperateImpl implements IShowOrderOperate{

	public String assort(String order_num) {
		return "";
	}

	public String cancel(String order_num) {
		String operate="&nbsp;<a href=\"javascript://void(0)\" class=\"btn-img btn-zt\" onclick=\"cancel('"+order_num+"');\">取消订单</a>";
		return operate;
	}

	public String finish(String order_num) {
		return "";
	}

	public String pay(String order_num) {
		String operate="&nbsp;<a href=\"javascript://void(0)\" class=\"btn-img btn-zt\" onclick=\"pay('"+order_num+"');\">付款</a>";
		return operate;
	}

	public String ship(String order_num) {
		return "";
	}

	public String sendsms(String order_num) {
		return "";
	}

	public String showTips(String order_num, String mem_no, int order_status) {
		String tips = "";
		switch (order_status) {
		case OrderStatus.WAIT_PAY:
			tips = "订单已提交，请您尽快付款完成交易";
			break;
		case OrderStatus.PAYED:
			tips = "您已付款，请等待系统审核";
			break;
		case OrderStatus.ASSORTING:
			tips = "审核完成，正在为您进行配货";
			break;
		case OrderStatus.SHIPPED:
			tips = "您的订单商品已出库，请注意查收";
			break;
		case OrderStatus.FINISHED:
			tips = "您的订单已完成交易，感谢您的光临";
			break;
		case OrderStatus.CANCELED:
			tips = "您已取消此订单";
			break;
		default:
			break;
		}
		return tips;
	}

	public String refund(String order_num){
		return "";
	}
}